package com.agile.leetcode.bigdecimal;

import java.math.BigDecimal;

/**
 * @author CZK
 * @date 2022/7/25 14:01
 */
public class Demo3 {
    public static void main(String[] args) {
        BigDecimal amount1 = new BigDecimal(Double.toString(0.02));
        BigDecimal amount2 = new BigDecimal(Double.toString(0.03));
        System.out.println(amount2.subtract(amount1));
    }
}
